=====================================================
 : Thanks
 : 2.1
=====================================================
 : MSW
  : http://0-web.ru/
=====================================================
 : ReadMe.txt
=====================================================


******* !!!
 ,       ,       :
1.        :
   - Z974836831699
   - R167272790699
   - U584119120009
    ,  {_}    :
=====================================================
     Thanks  : {_}
=====================================================

2.     ,    noindex / rel="nofollow",     :
=====================================================
<a href="http://0-web.ru/" target="_blank">  WEB-</a>
=====================================================

      .
        -          .

    (     ),         :
1.    -    ,     ,     .
2.   (),    -,     ,     .
3.     (, Google  ),      (.    Google: "       ")   "     ,     ",           .
4.      (  )  ,    .


****** :
0.  MySQL :
   !       dle,
        !
=====================================================
DROP TABLE IF EXISTS `dle_thanks`;
CREATE TABLE `dle_thanks` (
  `id` int(12) NOT NULL auto_increment,
  `id_post` int(15) NOT NULL default '0',
  `user_id` int(15) NOT NULL default '0',
  `user_name` varchar(255) NOT NULL default '',
  `host_ip` varchar(255) NOT NULL default '',
  `time` int(15) NOT NULL,
  PRIMARY KEY  (`id`),
  UNIQUE `user` ( `id_post`, `user_id`)
) ENGINE=MyISAM  DEFAULT CHARSET=cp1251 AUTO_INCREMENT=1;
ALTER TABLE `dle_users` ADD thx_num int(11) DEFAULT '0' NOT NULL;
=====================================================


1.    .


2.  : fullstory.tpl
         :
=====================================================
{include file="engine/modules/thanks.php?news_id={news-id}&login={login}&allow=[xfvalue_thanks]"}
=====================================================


3.  : shortstory.tpl
         :
=====================================================
{include file="engine/modules/thanks.php?news_id={news-id}&login={login}&allow=[xfvalue_thanks]&short=1"}
=====================================================


4.   /engine/cache/thanks/
      : 777


5. : /engine/modules/profile.php
:
=====================================================
$xfieldsaction = "list";
=====================================================

 :
=====================================================
#****** Thanks by MSW *** 0-web.ru ******#
	$tpl->set('{thx_num}', $row['thx_num']);
=====================================================


6.  : userinfo.tpl
      :
=====================================================
: {thx_num}
=====================================================


7.  -    :
 : thanks
 :    ?
: 
 : 
  :
=====================================================


=====================================================

8.   :
=====================================================
http://0-web.ru/
=====================================================



******    2.0  2.1:
1.   .

2. : /engine/modules/profile.php
  :
=====================================================
#****** Thanks by MSW *** 0-web.ru ******#
	$tpl->set('{thx_num}', $row['thx_num']);
=====================================================

:
=====================================================
$xfieldsaction = "list";
=====================================================

 :
=====================================================
#****** Thanks by MSW *** 0-web.ru ******#
	$tpl->set('{thx_num}', $row['thx_num']);
=====================================================




******    1.5  2.0:
0.  :
=====================================================
ALTER TABLE  `dle_thanks` ADD UNIQUE `user` ( `id_post`, `user_id`);
=====================================================

1.    
      : /engine/cache/thx/
     /engine/cache/thanks/
      : 777


2.  : fullstory.tpl
:
=====================================================
{include file="engine/modules/thanks.php"}
=====================================================

 :
=====================================================
{include file="engine/modules/thanks.php?news_id={news-id}&login={login}&allow=[xfvalue_thanks]"}
=====================================================


3.  : shortstory.tpl
:
=====================================================
{include file="engine/modules/thanks.php?short=1"}
=====================================================

 :
=====================================================
{include file="engine/modules/thanks.php?news_id={news-id}&login={login}&allow=[xfvalue_thanks]&short=1"}
=====================================================


4. : /engine/modules/profile.php
:
=====================================================
	$r_thx_num = ($row['thx_num']) ? "<br />: ".stripslashes($row['thx_num']) : "";
	$tpl->set('{thx_num}', $r_thx_num);
=====================================================

 :
=====================================================
#****** Thanks by MSW *** 0-web.ru ******#
	$tpl->set('{thx_num}', $row['thx_num']);
=====================================================


5.  : userinfo.tpl
:
=====================================================
{thx_num}
=====================================================

 :
=====================================================
: {thx_num}
=====================================================

6.   :
=====================================================
http://0-web.ru/
=====================================================



******    1.4  1.5:
1.  : /engine/modules/thanks.php


******    1.0  1.4:
1.  : /engine/modules/thanks.php
2. : /templates/_/fullstory.tpl
         :
----------------------------------
{include file="engine/modules/thanks.php"}
----------------------------------
3. : /templates/_/shortstory.tpl
         :
----------------------------------
{include file="engine/modules/thanks.php?short=1"}
----------------------------------

******    1.1-1.3  1.4:
1.  : /engine/modules/thanks.php
2. :
   /engine/modules/show.full.php
   /engine/modules/show.short.php
   :
----------------------------------
'{news-id}' => $row['id']
----------------------------------
    :
----------------------------------
, '{xfields}' => $row['xfields']
----------------------------------
     : '{news-id}' => $row['id'], '{xfields}' => $row['xfields']
3.     :

 : thanks
 :    ?
: 
 : 
  :
---------------------------------


---------------------------------
